package com.github.postsanf.yinian.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.github.postsanf.yinian.BaseActivity;
import com.github.postsanf.yinian.R;
import com.github.postsanf.yinian.largeImageView.InputStreamBitmapDecoderFactory;
import com.github.postsanf.yinian.largeImageView.LargeImageView;
import com.umeng.analytics.MobclickAgent;

import java.io.IOException;

public class AwardJoinAlbumActivity extends BaseActivity {
    private ImageView iv_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_award_join_album);
        initview();
    }

    private void initview() {
        iv_back = ((ImageView) findViewById(R.id.iv_back));
        iv_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        LargeImageView iv_pc = (LargeImageView) findViewById(R.id.iv_pc);
        try {
            iv_pc.setImage(new InputStreamBitmapDecoderFactory((getAssets().open("join_teach.jpg"))));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


    // 友盟统计
    public void onResume() {
        super.onResume();
        MobclickAgent.onPageStart(this.getClass().getSimpleName());
        MobclickAgent.onResume(this);
    }

    public void onPause() {
        super.onPause();
        MobclickAgent.onPageEnd(this.getClass().getSimpleName());
        MobclickAgent.onPause(this);
    }

}
